package main

type PersonInfo struct {
	Id string
	Name string
	Address string
}

func main() {
	//var personDB map[string] PersonInfo
	//personDB = make(map[string] PersonInfo)
	var personDB = map[string] PersonInfo{
		"1":PersonInfo{"1","karl","zhejiang wenzhou"},
	}
	personDB["1234"] = PersonInfo{"1234","bush","zhejiang hangzhou"}

	p,ok := personDB["1"]
	if ok{
		println("found person ",p.Name)
	}

	delete(personDB,"1234")
	p2,ok2 := personDB["1234"]
	if ok2 {
		println("found 1234",p2.Name)
	} else {
		println("not found 1234",ok2)
	}
	
}
